'use strict';

const Service = require('egg').Service;


class UserService extends Service {
    //得到全部的用户
    async getAllUser() {
        const data = await this.app.mysql.select('user');
        return data
    }
    async getFindUserId(id) {
        const data = await this.app.mysql.get('user', { id });
        return data
    }
}

module.exports = UserService;